package message

import "zstackgo/pkg/header/identity"

const (
	TypeAPIMessage = "APIMessage"
)

var (
	_ APIMessage = new(APIMessageImpl)
)

type APIMessage interface {
	NeedReplyMessage
	//IsSyncCall() bool // for `amsg instanceof APISyncCallMessage`@`core/rest/RESTApiController.java`
}

type APIMessageImpl struct {
	Session *identity.SessionInventory

	*NeedReplyMessageImpl
	//IsSync bool
}

// func (impl *APIMessageImpl) IsSyncCall() bool {
// 	return impl.IsSync
// }
